#include "PrecompiledHeader.h"
#include "IKeyboardDriver.h"

/*--------------------------------------------------------------------------*/

IKeyboardDriver::IKeyboardDriver(uint priority, bool isExclusive) :
	m_isExclusive(isExclusive),
	m_keyboardPriority(priority)
{

}

/*--------------------------------------------------------------------------*/

IKeyboardDriver::~IKeyboardDriver()
{

}

/*--------------------------------------------------------------------------*/

uint IKeyboardDriver::GetKeyboardPriority() const
{
	return this->m_keyboardPriority;
}

/*--------------------------------------------------------------------------*/

void IKeyboardDriver::SetKeyboardPriority(uint np)
{
	this->m_keyboardPriority = np;
}

/*--------------------------------------------------------------------------*/

bool IKeyboardDriver::GetIsExclusive() const
{
	return this->m_isExclusive;
}

/*--------------------------------------------------------------------------*/

void IKeyboardDriver::SetIsExclusive(bool b)
{
	this->m_isExclusive = b;
}

/*--------------------------------------------------------------------------*/

bool CmpKeyboardDriverByPriority(const IKeyboardDriver* d1, const IKeyboardDriver* d2)
{
	return d1->GetKeyboardPriority() < d2->GetKeyboardPriority();
}

/*--------------------------------------------------------------------------*/